home *** CD-ROM | disk | FTP | other *** search
/ Intel Web Outfitter Tool Kit 4 / Intel WebOutfitter Tool Kit Version 4.0.iso / public / Outfitter / TKM / scripts / maps.js < prev    next >
Encoding:
JavaScript  |  2000-03-13  |  9.4 KB  |  371 lines

  1. //--><script language="JavaScript">
  2. function callMap(){
  3. var coord1 = '';    // coordinates for "Click here"
  4. var coord2 = '';    // coordinate for (button)
  5.  
  6. //  ####  BEGIN g_sTKMRoot DEFINITION  ####
  7. //  Start at the beginning of the location and find our document root directory
  8. var g_sHref = location.href.toLowerCase();
  9. var g_nEndPos = g_sHref.indexOf('outfitter/');
  10. //  Grab everything up to the end of the word outfitter and add "/tkm/" to set the TKM Root
  11. var g_sTKMRoot = g_sHref.substring(0, (g_nEndPos + 9)) + '/tkm/';
  12.  
  13. //  ####  END g_sTKMRoot DEFINITION  ####
  14.  
  15.     switch (map.lang)
  16.     {    
  17.         case "au":
  18.             switch (map.imgName){
  19.                 case "70S_install_tkm":
  20.                     coord2 = '218,349,326,388'; 
  21.                     coord1 = '321,316,392,333';                    
  22.                     break;
  23.                 case "72S_update_app":            
  24.                     coord2 = '175,273,283,312';
  25.                     coord1 = '111,247,182,264';                    
  26.                     break;                
  27.                 case "73S_already_progress":
  28.                     coord2 = '175,273,283,312';
  29.                     coord1 = '102,213,168,230';                    
  30.                     break;
  31.                 case "74S_please_wait":
  32.                     coord2 = '207,310,315,349';
  33.                     coord1 = '104,261,170,278';                    
  34.                     break;
  35.             }
  36.             break;
  37.  
  38.         case "br":
  39.             switch (map.imgName){
  40.                 case "70S_install_tkm":
  41.                     coord2 = '216,375,324,414'; 
  42.                     coord1 = '375,344,452,362';                    
  43.                     break;
  44.                 case "72S_update_app":    
  45.                     coord2 = '203,273,311,312';
  46.                     coord1 = '370,235,449,252';    
  47.                     break;                
  48.                 case "73S_already_progress":
  49.                     coord2 = '185,292,293,331';
  50.                     coord1 = '106,246,175,262';                    
  51.                     break;
  52.                 case "74S_please_wait":
  53.                     coord2 = '207,325,315,364';
  54.                     coord1 = '106,295,175,311';                    
  55.                     break;
  56.             }
  57.             break;
  58.             
  59.         case "ca":
  60.             switch (map.imgName){
  61.                 case "70S_install_tkm":
  62.                     coord2 = '218,349,326,388'; 
  63.                     coord1 = '321,314,392,331';                     
  64.                     break;
  65.                 case "72S_update_app":            
  66.                     coord2 = '175,273,283,312';
  67.                     coord1 = '111,247,182,264';                    
  68.                     break;                
  69.                 case "73S_already_progress":
  70.                     coord2 = '175,273,283,312';
  71.                     coord1 = '102,213,168,230';                    
  72.                     break;
  73.                 case "74S_please_wait":
  74.                     coord2 = '207,310,315,349';
  75.                     coord1 = '104,261,170,278';                    
  76.                     break;
  77.             }
  78.             break;
  79.             
  80.         case "cafr":
  81.             switch (map.imgName){
  82.                 case "70S_install_tkm":
  83.                     coord2 = '217,350,325,389';
  84.                     coord1 = '323,321,393,338';                      
  85.                     break;
  86.                 case "72S_update_app":            
  87.                     coord2 = '210,269,318,308';
  88.                     coord1 = '344,239,414,255';    
  89.                     break;
  90.                 case "73S_already_progress":
  91.                     coord2 = '175,273,283,312';
  92.                     coord1 = '104,229,169,246';
  93.                     break;
  94.                 case "74S_please_wait":
  95.                     coord2 = '207,309,315,348';
  96.                     coord1 = '105,279,170,297';        
  97.                     break;
  98.             }
  99.             break;
  100.         
  101.         case "cn":
  102.             switch (map.imgName){
  103.                 case "70S_install_tkm":
  104.                     coord2 = '217,351,325,390';
  105.                     coord1 = '119,299,186,319';                     
  106.                     break;
  107.                 case "72S_update_app":            
  108.                     coord2 = '157,257,265,296';
  109.                     coord1 = '248,224,320,241';                    
  110.                     break;                
  111.                 case "73S_already_progress":
  112.                     coord2 = '175,244,283,283';
  113.                     coord1 = '100,197,173,214';                    
  114.                     break;
  115.                 case "74S_please_wait":
  116.                     coord2 = '186,258,294,297';
  117.                     coord1 = '101,214,171,231';
  118.                     break;
  119.             }
  120.             break;
  121.             
  122.         case "de":
  123.             switch (map.imgName){
  124.                 case "70S_install_tkm":
  125.                     coord2 = '217,355,325,394'; 
  126.                     coord1 = '334,321,437,338';                     
  127.                     break;
  128.                 case "72S_update_app":
  129.                     coord2 = '175,273,283,312';                            
  130.                     coord1 = '71,248,174,265';
  131.                     break;
  132.                 case "73S_already_progress":
  133.                     coord2 = '175,273,283,312';
  134.                     coord1 = '117,233,199,250';                    
  135.                     break;
  136.                 case "74S_please_wait":
  137.                     coord2 = '207,309,315,348';
  138.                     coord1 = '119,280,198,297';                    
  139.                     break;
  140.             }
  141.             break;
  142.             
  143.         case "es":
  144.             switch (map.imgName){
  145.                 
  146.                 case "70S_install_tkm":
  147.                     coord2 = '217,350,325,389'; 
  148.                     coord1 = '263,322,359,339'; 
  149.                     break;
  150.                 case "72S_update_app":    
  151.                     coord2 = '196,275,304,314';        
  152.                     coord1 = '297,240,396,257';                    
  153.                     break;
  154.                 case "73S_already_progress":
  155.                     coord2 = '183,265,291,304';
  156.                     coord1 = '136,213,194,230';                    
  157.                     break;
  158.                 case "74S_please_wait":
  159.                     coord2 = '207,309,315,348';
  160.                     coord1 = '138,261,196,278';
  161.                     break;
  162.             }
  163.             break;
  164.             
  165.         case "fr":
  166.             switch (map.imgName){
  167.                 case "70S_install_tkm":
  168.                     coord2 = '217,350,325,389';
  169.                     coord1 = '323,321,393,338';                      
  170.                     func = 'doInstall()';
  171.                     break;
  172.                 case "72S_update_app":            
  173.                     coord2 = '210,269,318,308';
  174.                     coord1 = '344,239,414,255';    
  175.                     break;
  176.                 case "73S_already_progress":
  177.                     coord2 = '175,273,283,312';
  178.                     coord1 = '104,229,169,246';
  179.                     break;
  180.                 case "74S_please_wait":
  181.                     coord2 = '207,309,315,348';
  182.                     coord1 = '105,279,170,297';        
  183.                     break;
  184.             }
  185.             break;
  186.         
  187.         case "gb":
  188.             switch (map.imgName){
  189.                 case "70S_install_tkm":
  190.                     coord2 = '218,349,326,388'; 
  191.                     coord1 = '321,316,392,333';                    
  192.                     break;
  193.                 case "72S_update_app":            
  194.                     coord2 = '175,273,283,312';
  195.                     coord1 = '111,247,182,264';                    
  196.                     break;                
  197.                 case "73S_already_progress":
  198.                     coord2 = '175,273,283,312';
  199.                     coord1 = '102,213,168,230';                    
  200.                     break;
  201.                 case "74S_please_wait":
  202.                     coord2 = '207,310,315,349';
  203.                     coord1 = '104,261,170,278';                    
  204.                     break;
  205.             }
  206.             break;
  207.             
  208.         case "it":
  209.             switch (map.imgName){
  210.                 case "70S_install_tkm":
  211.                     coord2 = '225,371,333,410';
  212.                     coord1 = '276,335,360,353'; 
  213.                     break;
  214.                 case "72S_update_app":            
  215.                     coord2 = '201,258,309,297';
  216.                     coord1 = '338,230,421,248';    
  217.                     break;
  218.                 case "73S_already_progress":
  219.                     coord2 = '175,273,283,312';
  220.                     coord1 = '96,229,175,246';
  221.                     break;
  222.                 case "74S_please_wait":
  223.                     coord2 = '207,309,315,348';
  224.                     coord1 = '97,261,177,278';
  225.                     break;
  226.             }
  227.             break;
  228.                 
  229.         case "jj":
  230.             switch (map.imgName){
  231.                 case "70S_install_tkm":
  232.                     coord2 = '217,350,325,389';
  233.                     coord1 = '71,315,164,332';     
  234.                     break;
  235.                 case "72S_update_app":            
  236.                     coord2 = '175,273,283,312';
  237.                     coord1 = '162,223,255,242';    
  238.                     break;
  239.                 case "73S_already_progress":
  240.                     coord2 = '186,273,294,312';
  241.                     coord1 = '125,212,220,230';
  242.                     break;
  243.                 case "74S_please_wait":
  244.                     coord2 = '207,310,315,349';
  245.                     coord1 = '126,258,223,275';    
  246.                     break;
  247.             }
  248.             break;    
  249.         
  250.         case "jp":
  251.             switch (map.imgName){
  252.                 case "70S_install_tkm":
  253.                     coord2 = '218,349,326,388'; 
  254.                     coord1 = '321,316,392,333';                    
  255.                     break;
  256.                 case "72S_update_app":            
  257.                     coord2 = '175,273,283,312';
  258.                     coord1 = '111,247,182,264';                    
  259.                     break;                
  260.                 case "73S_already_progress":
  261.                     coord2 = '175,273,283,312';
  262.                     coord1 = '102,213,168,230';                    
  263.                     break;
  264.                 case "74S_please_wait":
  265.                     coord2 = '207,310,315,349';
  266.                     coord1 = '104,261,170,278';                    
  267.                     break;
  268.             }
  269.             break;
  270.     
  271.         case "kr":
  272.             switch (map.imgName){
  273.                 case "70S_install_tkm":
  274.                     coord2 = '217,350,325,389';
  275.                     coord1 = '71,305,190,324'; 
  276.                     break;
  277.                 case "72S_update_app":            
  278.                     coord2 = '175,270,283,309';
  279.                     coord1 = '141,222,264,239';    
  280.                     break;
  281.                 case "73S_already_progress":
  282.                     coord2 = '174,273,282,312';
  283.                     coord1 = '84,229,200,247';
  284.                     break;
  285.                 case "74S_please_wait":
  286.                     coord2 = '187,310,295,349';
  287.                     coord1 = '309,261,421,279';    
  288.                     break;
  289.             }
  290.             break;
  291.             
  292.         case "tw":
  293.             switch (map.imgName){
  294.                 case "70S_install_tkm":
  295.                     coord2 = '216,306,324,345';
  296.                     coord1 = '392,273,456,292';                      
  297.                     func = 'doInstall()';
  298.                     break;
  299.                 case "72S_update_app":            
  300.                     coord2 = '174,245,282,284';
  301.                     coord1 = '70,225,129,244';
  302.                     break;
  303.                 case "73S_already_progress":
  304.                     coord2 = '175,232,283,271';
  305.                     coord1 = '111,201,155,219';
  306.                     break;
  307.                 case "74S_please_wait":
  308.                     coord2 = '166,265,274,304';
  309.                     coord1 = '114,230,158,248';                    
  310.                     break;
  311.             }
  312.             break;
  313.             
  314.         case "us":
  315.             switch (map.imgName){
  316.                 case "70S_install_tkm":
  317.                     coord2 = '218,349,326,388'; 
  318.                     coord1 = '321,314,392,331';                     
  319.                     break;
  320.                 case "72S_update_app":            
  321.                     coord2 = '175,273,283,312';
  322.                     coord1 = '111,247,182,264';                    
  323.                     break;                
  324.                 case "73S_already_progress":
  325.                     coord2 = '175,273,283,312';
  326.                     coord1 = '102,213,168,230';                    
  327.                     break;
  328.                 case "74S_please_wait":
  329.                     coord2 = '207,310,315,349';
  330.                     coord1 = '104,261,170,278';                    
  331.                     break;
  332.             }
  333.             break;
  334.         // Defaults to GB    
  335.         default:
  336.             switch (map.imgName){
  337.                 case "70S_install_tkm":
  338.                     coord2 = '218,349,326,388'; 
  339.                     coord1 = '321,316,392,333';                    
  340.                     break;
  341.                 case "72S_update_app":            
  342.                     coord2 = '175,273,283,312';
  343.                     coord1 = '111,247,182,264';                    
  344.                     break;                
  345.                 case "73S_already_progress":
  346.                     coord2 = '175,273,283,312';
  347.                     coord1 = '102,213,168,230';                    
  348.                     break;
  349.                 case "74S_please_wait":
  350.                     coord2 = '207,310,315,349';
  351.                     coord1 = '104,261,170,278';                    
  352.                     break;
  353.             }
  354.             break;
  355.                         
  356.     }
  357.         
  358.     var sHTML = '';    
  359.         sHTML = '<img src="' + g_sTKMRoot + 'scenarios/linkui/'+ map.lang + '/' + map.imgName +'.gif" border="0" usemap="#' + map.imgName + '"></p>' +            
  360.                 '\n<map name="' + map.imgName + '">' +
  361.                 '\n<area shape="rect" coords="' + coord1 + '" href="JavaScript:doCancel();">' +
  362.                 '\n<area shape="rect" coords="' + coord2 + '" href="JavaScript:doIt();">' +
  363.                 '\n<area shape="default" nohref>' +
  364.                 '\n</map>';
  365.         
  366.         document.write(sHTML);
  367. }
  368. callMap();
  369.  
  370.  
  371.